package com.samoilovich.belarustoday.datemodel;

import android.graphics.drawable.Drawable;

import java.lang.ref.WeakReference;

public class NewsModel {

    private long mId;
    private String mTitle;
    private String mTime;
    private String mCategory;
    private String mImageLink;
    private WeakReference<Drawable> mImageDrawable;
    private int mCategoryId;
    private String mLink;
    private String mDescription;

    public NewsModel() { }

    public NewsModel(long id, String title, String time, String category, String imageLink, int categoryId) {
        mId = id;
        mTitle = title;
        mTime = time;
        mCategory = category;
        mImageLink = imageLink;
        mCategoryId = categoryId;
    }

    public NewsModel(long id, String title, String time, String category, String imageLink, int categoryId, String link, String description) {
        mId = id;
        mTitle = title;
        mTime = time;
        mCategory = category;
        mImageLink = imageLink;
        mCategoryId = categoryId;
        mLink = link;
        mDescription = description;
    }

    public long getId() {
        return mId;
    }

    public void setId(long id) {
        mId = id;
    }

    // -----------------------------------------------------------------------------------
    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }

    // -----------------------------------------------------------------------------------
    public String getTime() {
        return mTime;
    }

    public void setTime(String time) {
        mTime = time;
    }

    // -----------------------------------------------------------------------------------
    public String getCategory() {
        return mCategory;
    }

    public void setCategory(String category) {
        mCategory = category;
    }

    // -----------------------------------------------------------------------------------
    public String getImageLink() {
        return mImageLink;
    }

    public void setImageLink(String imageLink) {
        mImageLink = imageLink;
    }

    // -----------------------------------------------------------------------------------
    public WeakReference<Drawable> getImageDrawable() {
        return mImageDrawable;
    }

    public void setImageDrawable(Drawable imageDrawable) {
        mImageDrawable = new WeakReference<Drawable>(imageDrawable);
    }

    // -----------------------------------------------------------------------------------
    public int getCategoryId() {
        return mCategoryId;
    }

    public void setCategoryId(int categoryId) {
        mCategoryId = categoryId;
    }

    // -----------------------------------------------------------------------------------
    public void setLink(String link) {
        mLink = link;
    }

    public void setDescription(String description) {
        mDescription = description;
    }

    // -----------------------------------------------------------------------------------

    public String getLink() {
        return mLink;
    }

    public String getDescription() {
        return mDescription;
    }
}
